#include <REGX52.H>
#include "LCD1602.h"

void Delay(unsigned int xms)
{
	unsigned char i, j;
	while(xms--)
	{
		i = 12;
		j = 169;
		do
		{
			while (--j);
		} while (--i);
	}
}

int main()
{
	int result=0;
	
	LCD_Init();
	LCD_ShowChar(1,1,'z');
	LCD_ShowString(1,3,"crayon");
	LCD_ShowNum(1,10,051,3);
	LCD_ShowSignedNum(1,13,-66,2);
	LCD_ShowHexNum(2,1,0xA8,2);
	LCD_ShowBinNum(2,4,0xA8,8);
	
	while(1)
	{
		LCD_ShowNum(2,13,result++,3);
		Delay(50);
	}
}